package material.strategy;

/**
 * 真鸭子--会飞，会叫
 */
public class MallardDuck extends Duck {
    public MallardDuck() {//在此处实例化会飞也会叫的具体行为
        quackBehavior = new Quack();
        flyBeahavior = new FlyWIthWings();
    }

    public void display() {
        System.out.println("我是一只真正的鸭子，会叫也会飞");
    }
}
